#include "include.h"
#include "func.h"
#include "func_music.h"
#include "func_hidden_music.h"

#if(MUSIC_HIDDEN_PLAY_EN)
AT(.text.func.music.msg)
void func_sd_hidden_music_message(u16 msg)
{
    switch (msg) {
        case KU_PREV_VOL_DOWN:
        case KL_VOL_DOWN_PREV:
        case KU_PREV:
            sd_hidden_music_switch_file(0);
            break;

        case KU_NEXT_VOL_UP:
        case KL_VOL_UP_NEXT:
        case KU_NEXT:
            sd_hidden_music_switch_file(1);
            break;


            break;

        case KU_PLAY:
        case KU_PLAY_POWER:
        case KU_PLAY_MODE:
            if (sHiddMusic.pause) {
                sHiddMusic.pause = false;
                music_control(MUSIC_MSG_PLAY);
            } else {
                sHiddMusic.pause = true;
                bsp_clr_mute_sta();
                music_control(MUSIC_MSG_PAUSE);
            }
            break;
        case EVT_UDISK_REMOVE:
            break;
        case EVT_SD_REMOVE:
            func_hidden_music_remove_device(DEV_SDCARD);
            break;
        case EVT_SD1_REMOVE:
            break;

        case EVT_UDISK_INSERT:
            break;
        case EVT_SD_INSERT:
            func_hidden_music_insert_device(DEV_SDCARD);
            break;
        case EVT_SD1_INSERT:
            break;

        default:
            // non_volatile_memory();
            func_message(msg);
            break;
    }
}
#endif//(MUSIC_HIDDEN_PLAY_EN)

